﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using sharp_net;

namespace zkdao.Host.RebateService {

    public partial class RebateData {

    }

    public class RebateSubmit {

        [Required]
        [StringLength(100, ErrorMessage = "{0} 不得超过 {2} 位字符。")]
        [Display(Name = "标题")]
        public string Title { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "正文")]
        public string ContentRich { get; set; }

        [Required]
        [Display(Name = "到手价")]
        [DataType(DataType.Currency)]
        public int HandPrice { get; set; }

        [Required]
        [Display(Name = "购买链接")]
        [DataType(DataType.Url)]
        public string LinkUrl { get; set; }

        [Display(Name="开始时间")]
        [DataType(DataType.DateTime)]
        public DateTime? StartTime { get; set; }

        [Display(Name = "结束时间")]
        [DataType(DataType.DateTime)]
        public DateTime? EndTime { get; set; }

        [Required]
        [Display(Name = "图片")]
        [DataType(DataType.ImageUrl)]
        public string ImageIDs { get; set; }
        
        [Display(Name = "商品类型")]
        public String GoodsCategoryTags { get; set; }

        [Display(Name = "折扣特征")]
        public String DiscountPriceTags { get; set; }

        [Display(Name = "商家来源")]
        public String DiscountSourceTags { get; set; }

        [Display(Name = "地区限制")]
        public String AreaLimitTags { get; set; }
    }
}